import request from '@/utils/request'
// 带参数获取文章列表sssssssssssssssssss
export const getArticleListAPI = ({ page, pageSize, cateId, state }) => {
  return request({
    url: `/api/article?page=${page}&pageSize=${pageSize}&cateId=${cateId}&state=${state}`,
    method: 'get'

  })
}
// 不带参数获取所有文章信息
export const getAllReservationAPI = () => {
  return request({
    method: 'GET',
    url: '/api/article'
  })
}
